<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=0.5,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no, email=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <!-- 删除苹果默认的工具栏和菜单栏 -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <!-- 设置苹果工具栏颜色 -->
    <meta name="format-detection" content="telphone=no, email=no" />
    <!-- 忽略页面中的数字识别为电话，忽略email识别 -->
    <!-- 启用360浏览器的极速模式(webkit) -->
    <meta name="renderer" content="webkit">
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 针对手持设备优化，主要是针对一些老的不识别viewport的浏览器，比如黑莓 -->
    <meta name="HandheldFriendly" content="true">
    <!-- 微软的老式浏览器 -->
    <meta name="MobileOptimized" content="320">
    <!-- uc强制竖屏 -->
    <meta name="screen-orientation" content="portrait">
    <!-- QQ强制竖屏 -->
    <meta name="x5-orientation" content="portrait">
    <!-- UC强制全屏 -->
    <meta name="full-screen" content="yes">
    <!-- QQ强制全屏 -->
    <meta name="x5-fullscreen" content="true">
    <!-- UC应用模式 -->
    <meta name="browsermode" content="application">
    <!-- QQ应用模式 -->
    <meta name="x5-page-mode" content="app">
    <!-- windows phone 点击无高光 -->
    <meta name="msapplication-tap-highlight" content="no">
    <title>虾客云-统计分析</title>
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/main.css">
    <link rel="stylesheet" href="css/index.css">
    <link rel="stylesheet" href="css/yd_rl.css" />
    <link rel="stylesheet" href="css/LCalendar.css" />
</head>
<body>
    <!-- 公共头部 -->
    <div class="g2_head-bg">
        <!-- 返回上一层 -->
        <p class="g2_head_goback-bg fl">
            <a href="index.html">
                <img src="images/xky_icon0-1.png" class="g2_head_goback_icon fl" alt="">
                <span class="g2_head_goback_del fl">返回</span>
            </a>
        </p>
        <p class="ym-tit fl">核算统计</p>
        <span class="g2_head_goback_del fr khtj_sx" style="display:block;">筛选</span>
        <div class="cl"></div>
    </div>
    <div class="g2_head-bg3"></div>
    <!-- 核算实际利润 -->
    <div class="khtj_sjlr-bg" id="hstj1">
        <ul class="khtj_nav_list-bg">
            <li class="khtj_nav_list bgcolor_default fl">全部</li>
            <li class="khtj_nav_list fl">本周</li>
            <li class="khtj_nav_list fl">本月</li>
            <li class="khtj_nav_list fl">本年</li>
            <div class="cl"></div>
        </ul>
        <div class="khtj_del-bg">
            <p class="khtj_deltit">合计实际毛利</p>
            <p class="khtj_del">
                <span>2,000.00</span>
                <span style="font-size:1.6rem;color:#333;">元</span>
            </p>
        </div>
    </div>
    <ul class="khtj_mxlist-bg" id="hstj2">
        <li class="cjtj_mxlist">
            <p class="khtj_mxcj-bg">
                <span class="khtj_mxcjname fl">王群翔</span>
                <span class="khtj_mxcjiphone fl">12356995623</span>
                <span class="khtj_mxcjdd2 fl">白马寺三日游</span>
                <div class="cl"></div>
            </p>
            <p class="cjmx_list-bg">
                <span class="cjmx_list fl">
                    <span>应收金额</span>
                    <span>1200</span>
                </span>
                <span class="cjmx_list fl">
                    <span>实收金额</span>
                    <span>0</span>
                </span>
                <span class="cjmx_list fl">
                    <span>请款金额</span>
                    <span>0</span>
                </span>
                <span class="cjmx_list fl">
                    <span>预估毛利</span>
                    <span>200</span>
                </span>
                <span class="cjmx_list fl">
                    <span>发团日期</span>
                    <span>10.18</span>
                </span>
                <em class="cl"></em>
            </p>
        </li>
        <li class="cjtj_mxlist">
            <p class="khtj_mxcj-bg">
                <span class="khtj_mxcjname fl">王群翔</span>
                <span class="khtj_mxcjiphone fl">12356995623</span>
                <span class="khtj_mxcjdd2 fl">白马寺三日游</span>
                <div class="cl"></div>
            </p>
            <p class="cjmx_list-bg">
                <span class="cjmx_list fl">
                    <span>应收金额</span>
                    <span>1200</span>
                </span>
                <span class="cjmx_list fl">
                    <span>实收金额</span>
                    <span>0</span>
                </span>
                <span class="cjmx_list fl">
                    <span>请款金额</span>
                    <span>0</span>
                </span>
                <span class="cjmx_list fl">
                    <span>预估毛利</span>
                    <span>200</span>
                </span>
                <span class="cjmx_list fl">
                    <span>发团日期</span>
                    <span>10.18</span>
                </span>
                <em class="cl"></em>
            </p>
        </li>
    </ul>

    <!-- 核算统计筛选条件 -->
    <div class="khtj_sxbg" id="hstj3">
        <form action="">
            <ul class="khs2">
                <li class="khs2_list">
                    <p class="khs2_tit fl">部门</p>
                    <span class="sewv fl">
                        <span class="sewvtop">
                            <span>请选择部门</span>
                            <em>
                                <img src="images/xky_icon9.png">
                            </em>
                        </span>
                        <ul class="sewvbm">
                            <li>...</li>
                            <li>...</li>
                        </ul>
                    </span>
                    <div class="cl"></div>
                </li>
                <li class="khs2_list">
                    <p class="khs2_tit fl">员工</p>
                    <span class="sewv fl">
                        <span class="sewvtop">
                            <span>请选择员工</span>
                            <em>
                                <img src="images/xky_icon9.png">
                            </em>
                        </span>
                        <ul class="sewvbm">
                            <li>...</li>
                            <li>...</li>
                        </ul>
                    </span>
                    <div class="cl"></div>
                </li>
                <li class="khs2_list">
                    <p class="khs2_tit fl">下单日期</p>
                    <p class="khs2_del fl" style="position:relative;">
                        <input type="text" name="start_date" id="start_date" placeholder="开始日期" readonly="readonly" style="border:1px solid #999;border-radius:4px;width:48%;left:0;top:20px;height:50px;text-align:center;"
                        />
                        <input type="text" name="end_date" id="end_date" placeholder="结束日期" readonly="readonly" style="border:1px solid #999;border-radius:4px;width:48%;right:0;top:20px;height:50px;text-align:center;"
                        />
                    </p>
                    <div class="cl"></div>
                </li>
                <input type="sibmit" class="gdsx_search-btn" value="搜索">
            </ul>
        </form>
    </div>

    <script src="js/jquery.min.js"></script>
    <script src="js/fastclick.min.js"></script>
</body>
    <script src="js/LCalendar.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/index.js" type="text/javascript" charset="utf-8"></script>
    <script>
        $(function () {
            FastClick.attach(document.body);
        });
                    window.onload = function (event) {
                        location.hash = 'hstj1';
                        $("#hstj1").show();
                        $("#hstj2").show();
                        $("#hstj3").hide();
                    }

                    $(window).on('hashchange', function (e) {
                        var id = location.hash.substr(1);
                        $("#" + id).show()

                        if (id == "hstj1") {
                            $("#hstj1").show();
                            $("#hstj2").show();
                            $("#hstj3").hide();
                            $('.ym-tit').html('核算统计');
                        } else if (id == "hstj2") {
                            $("#hstj1").show();
                            $("#hstj2").show();
                            $("#hstj3").hide();
                            $('.ym-tit').html('核算统计');
                        } else if (id == "hstj3") {
                            $("#hstj1").hide();
                            $("#hstj2").hide();
                            $("#hstj3").show();
                            $('.ym-tit').html('核算统计筛选');
                        }

                    })
                    // 成交统计点击出现筛选
                    $('.khtj_sx').click(function () {
                        location.hash = 'hsgl3';
                        $("#hstj1").hide();
                        $("#hstj2").hide();
                        $("#hstj3").show();
                        $('.ym-tit').html('核算统计筛选');
                    })
        $('.khtj_nav_list').click(function(){
            $(this).addClass('bgcolor_default').siblings().removeClass('bgcolor_default');
        })

            $('.cjtj_mxlist').click(function(){
                if ($(this).children().eq(3).is(":hidden")) {//如果隐藏就显示
                    $(this).children().eq(3).show();
                } else {
                    $(this).children().eq(3).hide();
                }
            })

    </script>
    <script type="text/javascript">
            var calendar = new LCalendar();
            calendar.init({
                'trigger': '#start_date', //标签id
                'type': 'date', //date 调出日期选择 datetime 调出日期时间选择 time 调出时间选择 ym 调出年月选择,
                'minDate': (new Date().getFullYear() - 3) + '-' + 1 + '-' + 1, //最小日期
                'maxDate': (new Date().getFullYear() + 3) + '-' + 12 + '-' + 31 //最大日期
            });

            var calendar = new LCalendar();
            calendar.init({
                'trigger': '#end_date', //标签id
                'type': 'date', //date 调出日期选择 datetime 调出日期时间选择 time 调出时间选择 ym 调出年月选择,
                'minDate': (new Date().getFullYear() - 3) + '-' + 1 + '-' + 1, //最小日期
                'maxDate': (new Date().getFullYear() + 3) + '-' + 12 + '-' + 31 //最大日期
            });

    </script>
</html>